import '../../models/financial_summary.dart';

abstract class HomeState {}

class HomeInitial extends HomeState {}

class HomeLoading extends HomeState {}
class HomeNoCompany extends HomeState {
  final String message;
  HomeNoCompany(this.message);
}

class HomeHaveCompany extends HomeState {
  final String message;
  HomeHaveCompany(this.message);
}


class HomeAddSuccess extends HomeState {
  final String summary;
  HomeAddSuccess(this.summary);
}
class HomeLoadSuccess extends HomeState {
  final Map<String, dynamic> summary;
  HomeLoadSuccess(this.summary);
}

class HomeLoadFailure extends HomeState {
  final String error;
  HomeLoadFailure(this.error);
}
class HomeChangeYear extends HomeState {
  final int year;
  HomeChangeYear(this.year);
}